[Mini-OS] Make gnttab allocation/free safe
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 28 Nov 2007 12:40:57 +0000 (12:40 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 28 Nov 2007 12:40:57 +0000 (12:40 +0000)
commit1c0c172695a42a11ca7206283b4f1d6a486d05ac
treef4b821a303752bfb60fb9833469e81c7db489235
parent7f4955ee5fc5f9f45e8d201a25b7ac445838b1a2
[Mini-OS] Make gnttab allocation/free safe

Add a semaphore to protect gnttab_list from exhaustion, and disable
callbacks during allocation/free.  Fix the network frontend accordingly.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
extras/mini-os/gnttab.c
extras/mini-os/netfront.c